package com.zjc.yohoshop.mvp.view.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zjc.yohoshop.R;
import com.zjc.yohoshop.bean.CategoryLeftEntity;
import com.zjc.yohoshop.mvp.view.custom.MyTextViewCategoryLeft;

public class CategoryLeftAdapter extends BaseQuickAdapter<CategoryLeftEntity.Values, BaseViewHolder> {
    public CategoryLeftAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, CategoryLeftEntity.Values item) {
        helper.setText(R.id.tv_category_left_title, item.getCategory_name());
        MyTextViewCategoryLeft textView = helper.getView(R.id.tv_category_left_title);
        textView.setIsSelect(item.isSelector);
    }

}
